<?php if (!defined('THINK_PATH')) exit();?><!doctype html>
<html>
<head>
	<meta charset="utf-8" />
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
	<link href="__STATIC__/css/admin/style.css" rel="stylesheet"/>
	<title><?php echo L('website_manage');?></title>
	<script>
	var URL = '__URL__';
	var SELF = '__SELF__';
	var ROOT_PATH = '__ROOT__';
	var APP	 =	 '__APP__';
	//语言项目
	var lang = new Object();
	<?php $_result=L('js_lang');if(is_array($_result)): $i = 0; $__LIST__ = $_result;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$val): $mod = ($i % 2 );++$i;?>lang.<?php echo ($key); ?> = "<?php echo ($val); ?>";<?php endforeach; endif; else: echo "" ;endif; ?>
	</script>
</head>

<body>
<div id="J_ajax_loading" class="ajax_loading"><?php echo L('ajax_loading');?></div>
<?php if(($sub_menu != '') OR ($big_menu != '') OR ($ajaxMenuList != '')): ?><div class="subnav">
    <div class="content_menu ib_a blue line_x">
    	<?php if(!empty($big_menu)): ?><a class="add fb J_showdialog" href="javascript:void(0);" data-uri="<?php echo ($big_menu["iframe"]); ?>" data-title="<?php echo ($big_menu["title"]); ?>" data-id="<?php echo ($big_menu["id"]); ?>" data-width="<?php echo ($big_menu["width"]); ?>" data-height="<?php echo ($big_menu["height"]); ?>"><em><?php echo ($big_menu["title"]); ?></em></a>　<?php endif; ?>

        <?php if(!empty($ajaxMenuList)): if(is_array($ajaxMenuList)): foreach($ajaxMenuList as $key=>$big_menu): ?><a class="add fb J_showdialog" href="javascript:void(0);" data-uri="<?php echo ($big_menu["iframe"]); ?>" data-title="<?php echo ($big_menu["title"]); ?>" data-id="<?php echo ($big_menu["id"]); ?>" data-width="<?php echo ($big_menu["width"]); ?>" data-height="<?php echo ($big_menu["height"]); ?>"><em><?php echo ($big_menu["title"]); ?></em></a>　<?php endforeach; endif; endif; ?>      
        <?php if(!empty($sub_menu)): if(is_array($sub_menu)): $key = 0; $__LIST__ = $sub_menu;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$val): $mod = ($key % 2 );++$key; if($key != 1): ?><span>|</span><?php endif; ?>
        <a href="<?php echo U($val['moduleName'].'/'.$val['actionName'],array('menuid'=>$menuid)); echo ($val["data"]); ?>" class="<?php echo ($val["class"]); ?>"><em><?php echo L($val['name']);?></em></a><?php endforeach; endif; else: echo "" ;endif; endif; ?>
    </div>
</div><?php endif; ?>
<!--添加公告-->
<form id="info_form" action="<?php echo U('notice/add');?>" method="post" enctype="multipart/form-data">
<div class="pad_lr_10">
	<div class="col_tab">

		<div class="J_panes">
			<div class="content_list pad_10">
				<table width="100%" cellspacing="0" class="table_form">
					<tr>
						<th width="120"><?php echo L('notice_title');?> :</th>
						<td><input type="text" name="title" id="J_title" class="input-text" size="30"></td>
					</tr>

					<tr>
						<th><?php echo L('publish');?> :</th>
		 				<td>
		                	<label><input type="radio" name="status" class="radio_style" value="1"> <?php echo L('yes');?> </label>&nbsp;&nbsp;
							<label><input type="radio" name="status" class="radio_style" value="0" checked="checked"> <?php echo L('no');?></label>
						</td>
					</tr> 
                    <!--tr>                        
            	      <th><?php echo L('store_channel');?> :</th>
            	      <td>
                            <label><input type="radio" name="channel" value="0" checked> <?php echo L('store_channel0');?></label>&nbsp;&nbsp;
                            <label><input type="radio" name="channel" value="1" > <?php echo L('store_channel1');?></label>&nbsp;&nbsp;
                            <label><input type="radio" id="channel2" name="channel" value="2"> <?php echo L('store_channel2');?></label>
            	      </td> 
                    </tr-->
                                       
                    		          
		            <tr>
						<th><?php echo L('notice_region');?> :<a id="select_all" href="javascript:void(0);">(全选)</a></th>
						<td>
     	                    <?php if(is_array($regionList)): $i = 0; $__LIST__ = $regionList;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$v): $mod = ($i % 2 );++$i;?><label><input type="checkbox" name="region[]" value="<?php echo ($key); ?>" /><?php echo ($v); ?></label><?php endforeach; endif; else: echo "" ;endif; ?>
		                </td>
					</tr>
		            <tr>
						<th><?php echo L('article_copyfrom');?> :</th>
						<td><input type="text" name="copyFrom" id="copyFrom" class="input-text" size="30" value=""></td>
					</tr>
                    <tr>
						<th><?php echo L('publish_time');?> :</th>
						<td><input type="text" value="" size="22" class="date" id="publish_time" name="publishTime"></td>
		 			</tr>                    
                    
		            <tr>
						<th><?php echo L('notice_att');?> :</th>
						<td><input type="file" name="file" id="file" class="input-text"  style="width:200px;" /></td>
		 			</tr>
                    <tr>
						<th><?php echo L('notice_con');?> :</th>
		                <td><textarea name="con" id="info" style="width:68%;height:400px;visibility:hidden;resize:none;"></textarea></td>
					</tr>		            
				</table>
			</div>
		
        </div>
		<div class="mt10"><input type="submit" value="<?php echo L('submit');?>" id="dosubmit" name="dosubmit" class="btn btn_submit" style="margin:0 0 10px 100px;"><br /><br /><br /></div>
	</div>
</div>
</form>
<script src="__STATIC__/js/jquery/jquery.js"></script>
<script src="__STATIC__/js/jquery/plugins/jquery.tools.min.js"></script>
<script src="__STATIC__/js/jquery/plugins/formvalidator.js"></script>
<script src="__STATIC__/js/pinphp.js"></script>
<script src="__STATIC__/js/admin.js"></script>
<script>
//初始化弹窗
(function (d) {
    d['okValue'] = lang.dialog_ok;
    d['cancelValue'] = lang.dialog_cancel;
    d['title'] = lang.dialog_title;
})($.dialog.defaults);
</script>

<?php if(isset($list_table)): ?><script src="__STATIC__/js/jquery/plugins/listTable.js"></script>
<script>
$(function(){
	$('.J_tablelist').listTable();
});
</script><?php endif; ?>
<script src="__STATIC__/js/kindeditor/kindeditor.js"></script>
<link rel="stylesheet" type="text/css" href="__STATIC__/js/calendar/calendar-blue.css"/>
<script src="__STATIC__/js/calendar/calendar.js"></script>
<script>
$(document).ready(function (){
	KindEditor.create('#info', {
		uploadJson : '<?php echo U("attachment/editer_upload");?>',
		fileManagerJson : '<?php echo U("attachment/editer_manager");?>',
		allowFileManager : true
	});
Calendar.setup({
    inputField : "publish_time",
    ifFormat   : "%Y-%m-%d %H:%M:%S",
    showsTime  : true,
    timeFormat : "24"
});    
$("#select_all").click(function(){
   
   $("input[name='region[]']").attr("checked",true);    
})
});
</script>
</body>
</html>